<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="javascript:void(0);">开始</a> / 
    <a href="javascript:void(0);">包含物料表</a>
</div>
<div class="table-head fn-clear">
    <div class="fn-l">
        <a href="{url('bom/iphone')}" class="button">
            <i class="iconfont icon-xiangzuo1"></i> 返回
        </a>
    </div>
     <div class="fn-r">
        <a href="javascript:void(0);" url="{url('bom/add_bom',array('id'=>$info['id']))}" class="button button-blue win">
            <i class="iconfont icon-tianjia"></i> 添加物料配件
        </a>
    </div>   
</div>
<div class="m10">
<table class="table table-border">
    <tr>
      <th class="w100 fn-tar">手机代码:</th>
      <td>
        <input class="input w200 gray-input" datatype="*" type="text" name="code" value="{$info['code']}" readonly="readonly" />
      </td>
    </tr>
    <tr>
      <th class="w100 fn-tar">手机名称:</th>
      <td>
        <input class="input w350 gray-input" datatype="*" type="text" name="name" value="{$info['name']}" readonly="readonly" />
      </td>
    </tr>    
</table>
<table class="table table-border">
<thead>
    <tr>
        <th class="fn-tac w60">#</th>
        <th class="w200">产品名称</th>
        <th class="w100 fn-tac">物料代码</th>
        <th class="w200">物料名称</th>
        <th>规格型号</th>
        <th class="w60">标配数量</th>
        <th class="fn-tac w120">更新时间</th>
        <th class="fn-tac w60">操作</th>
    </tr>
</thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac">{$vo['bom_id']}</td>
    <td>{$vo['product']}</td>
    <td class="fn-tac">{$vo['code']}</td>
    <td>{$vo['name']}</td>
    <td>{$vo['parameter']}</td>
    <td class="fn-tac"><span class="badge bg-blue">{$vo['bom_number']}</span></td>
    <td class="fn-tac">{date('Y-m-d',$vo['uptime'])}</td>
    <td class="fn-tac tip">
    <a href="javascript:void(0);" class="del" title="删除" url="{url('bom/reads',array(id=>$vo['bom_id'],act=>del))}">删除</a></td>
</tr>
{/loop}
</tbody>
</table>
<div id="page" class="fn-clear">{$pager}</div>
</div>
<script type="text/javascript">
Do('base','dialog',function(){
  $('.del').click(function(){$(this).del();});
  $('.win').click(function(){$(this).win();});
})
</script>
